﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BBPA.Admin
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.UI;


    public class ListPage : Page
    {
        /// <summary>
        /// 获取列表记录数量
        /// </summary>
        /// <param name="sql_"></param>
        /// <returns></returns>
        public virtual int get_Page_RecordCount(string sql_)
        {
            return 0;
        }
        /// <summary>
        /// 获取列表数据表
        /// </summary>
        public virtual DataSet get_Page_DataSet(string sql_, string orderby_, int pageFrom_, int pageTo_)
        {
            return new DataSet();
        }
        public virtual DataTable get_Page_DataTable(string sql_, string orderby_, int pageFrom_, int pageTo_)
        {
            return new DataTable();
        }
        public virtual DataSet get_DataSet(string sql_)
        {
            return new DataSet();
        }
        public virtual DataTable get_DataTable(string sql_)
        {
            return new DataTable();
        }
        public virtual List<object> get_Page_List(string sql_, string orderby_, int pageFrom_, int pageTo_)
        {
            return new List<object>();
        }
        public virtual List<object> get_Page_List(int pageSize_, int pageIndex_, string orderColumn_, int order_, string where_)
        {
            return new List<object>();
        }
        public virtual List<object> get_List()
        {
            return new List<object>();
        }

        public virtual DataSet get_Page_DataSet(int pageSize_, int pageIndex_, string orderColumn_, int order_, string where_)
        {
            return new DataSet();
        }
        public virtual DataTable get_Page_DataTable(int pageSize_, int pageIndex_, string orderColumn_, int order_, string where_)
        {
            return new DataTable();
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="idStr_">要删除的ID串</param>
        public virtual void del_Page_List(string idStr_)
        {

        }
        /// <summary>
        /// 批量操作
        /// </summary>
        /// <param name="idStr_">要删除的ID串</param>
        /// <param name="action_">批量操作命令</param>
        public virtual void bat_Page_List(string idStr_,string action_)
        {

        }
        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="state">要修改成的状态值</param>
        public virtual void state_Page_List(int id, int state)
        {

        }
        /// <summary>
        /// 上下移动
        /// </summary>
        /// <param name="id"></param>
        /// <param name="move">移动方向，上移=1，下移=-1</param>
        public virtual void move_Page_List(int id, int move)
        {

        }
        /// <summary>
        /// 根据搜索表单，构造搜索SQL
        /// </summary>
        public virtual void buildSQL_Page_List_search()
        {

        }
    }
}
